/* 首页 */

/* 主要盒子宽度100% */
header,
nav,
main,
footer {
  width: 100%;
}

/* 容器宽度统一定义，居中 */
.w1200 {
  width: 120rem;
  margin: 0 auto;
}

.mt10 {
  margin-top: 1rem;
}

.mt20 {
  margin-top: 2rem;
}

.mt30 {
  margin-top: 3rem;
}

/* 1.页面头部 */

header {
  color: #a5a4a4;
  background-color: #282828;
}

/* 1.1顶部 */
.top-nav {
  display: flex;
  align-items: center;
  height: 3rem;
  font-size: 1.2rem;
}

/* 弹性盒子中把元素向右推 */
.top-nav .push-right {
  margin-left: auto;
}

.top-nav a {
  color: #a5a4a4;
  padding-right: 1rem;
}

/* 伪元素方式增加竖线，默认是行级(inline)元素*/
.top-nav a:not(:last-of-type)::after {
  content: "|";
  margin-left: 1rem;
  display: inline-block;
}

/* 1.2 页面logo */
div.logo {
  height: 10rem;
  background: #89211b url(../images/head.jpg) no-repeat center center;
}

h1 {
  height: 10rem;
}

/* 2. 导航菜单 */
nav {
  background-color: #ebebeb;
}

/* 2.1 主菜单定义 */

/* 把a标签作为盒子 */
nav a {
  display: block;
  text-align: center;
  height: 4rem;
  line-height: 4rem;
}

/* 弹性盒子定义 */
nav ul {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

/* 弹性元素项定义 */
nav li {
  flex: 1;
  position: relative;
}

nav li > a {
  font-size: 1.6rem;
}

/* 菜单“首页”默认样式设定 */
nav li:first-of-type > a {
  color: #fff;
  background: #89211b;
}

nav li:hover > a {
  color: #fff;
  background: #89211b;
}

/* 2.2 子菜单定义 */
nav ul.sub-menu {
  display: none;
  position: absolute;
}

nav li:hover ul.sub-menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background-color: #89211b;
  width: calc(120rem / 9);
}

nav ul.sub-menu a {
  color: #fff;
  font-size: 1.2rem;
}

nav ul.sub-menu li:hover > a {
  background-color: #a1261f;
}

/* 3. 页面主体 */
.t {
  display: flex;
  align-items: center;
  background: transparent;
  line-height: 5rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #b2b2b2;
}

.t h2 {
  color: #89211b;
  font-size: 2rem;
  margin-left: 1rem;
}

.t .more {
  margin-left: auto;
}

/* 3.1 轮播图 */
.banner {
  display: flex;
  justify-content: center;
}

.banner p {
  flex: 1 1 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
  position: relative;
}

.banner p a.arrow {
  display: block;
  position: absolute;
  width: 6rem;
  height: 100%;
  cursor: pointer;
  top: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.4);
}

.banner p a.prev {
  right: 0;
  background: url(../images/slider-arrow.png) no-repeat -18rem 0;
}

.banner p a.prev:hover {
  background: url(../images/slider-arrow.png) no-repeat -12rem 0;
}

.banner p a.next {
  left: 0;
  background: url(../images/slider-arrow.png) no-repeat -6rem 0;
}

.banner p a.next:hover {
  background: url(../images/slider-arrow.png) no-repeat 0 0;
}

.banner ul {
  flex: 0 0 120rem;
  display: flex;
  align-items: center;
  justify-content: start;
}

.banner ul > li {
  flex: 0 0 120rem;
}

/* 测试移动方式 */
.banner ul > li:first-of-type {
  margin-left: -120rem;
}

.banner figure {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 40rem;
}

.banner figcaption {
  font-size: 1.6rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  height: 4rem;
  line-height: 4rem;
  margin-top: -4rem;
  margin-left: 2rem;
  padding-left: 8rem;
}

/* 3.2 学院新闻 */
.news {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.news > section {
  display: flex;
  height: 30rem;
  align-items: center;
}

/* 图片新闻 */
.news > section article:nth-of-type(1) ul{
  flex: 0 0 55%;
  display: flex;
  height: 30rem;
  overflow: hidden;
}

.news > section article:nth-of-type(1) li{
  flex: 1 1 calc(50%-3rem);
  display: flex;
  margin-right: 3rem;
  display: flex;
  flex-direction: column;
}

.news > section article:nth-of-type(1) li img{
  border-bottom: .3rem solid  #ec7c51;
}

.news > section article:nth-of-type(1) li:last-of-type img{
  border-bottom: .3rem solid  #efab09;
}

.news > section article:nth-of-type(1) li a{
  display: inline-block;
  height: 2.4rem;
  line-height: 2.4rem;
  padding: 0 1rem;
  font-weight: bold;
  font-size: 1.4rem
}

.news > section article:nth-of-type(1) li a:hover{
  color: #89211b;
}
.news > section article:nth-of-type(1) li p{
  height: 4rem;
  line-height: 2rem;
  color: #666;
  padding: .5rem 1rem 0 1rem;
}

/* 文字新闻 */
.news > section article:nth-of-type(2){
  flex: 0 0 45%;
  height: 30rem;
}

.news > section article:nth-of-type(2) ul{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  height: 30rem;
}

.news > section article:nth-of-type(2) li{
  width: calc(50% - 1.6rem);
  height: 4.8rem;
  line-height: 2.4rem;
  border-bottom: .1rem solid #e1e1e1;
  margin-left: 1.6rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.3rem;
  font-size: 1.4rem;
}

.news > section article:nth-of-type(2) li a:hover{
  color: #89211b;
}

/* 3.3 通知公告&学工动态&链接 */
.mix{
  background: #f7f7f7 url(../images/bg.jpg) no-repeat center top;
  height: 40rem;
}

.mix > div{
  display: flex;
  align-items: center;
  justify-content: start;
}

/* 3.3.1 通知公告 */
.mix section:nth-of-type(1){
  flex: 0 0 54rem;
  margin-right: 5rem;
}

.mix section:nth-of-type(1) ul{
  display: flex;
  flex-direction: column;
}

.mix section:nth-of-type(1)  li{
  height: 7rem;
  margin-top: 2rem;
}

/* 演示浮动实现 */
.mix section:nth-of-type(1) li div{
  float: left;
  margin-right: 1rem;
}

.mix section:nth-of-type(1) span{
  display: block;
  width: 7rem;
  height: 3.5rem;
  line-height: 3.5rem;
  text-align: center;
}

.mix section:nth-of-type(1) span:nth-of-type(1){
  background-color: #89211b;
  color: #fff;
  font-size: 2.4rem;
  font-weight: bold;
}

.mix section:nth-of-type(1) span:nth-of-type(2){
  border: .1rem solid #bcbcbc;
  font-size: 1.4rem;
  width:6.8rem;
  height: 3.3rem;  
  line-height: 3.3rem;
}

.mix section:nth-of-type(1) a{
  font-size: 1.4rem;
  font-weight: bold;
}

.mix section:nth-of-type(1) a:hover{
  color: #89211b;
}

.mix section:nth-of-type(1) p{
  margin: 1.2rem 0;
}


/* 3.3.2 学工动态 */
.mix section:nth-of-type(2){
  flex: 0 0 40rem;
  margin-right: 2.5rem;
}

.mix section:nth-of-type(2) li{
  height: 3.3rem;
  line-height: 3.3rem;
  background: url(../images/icon6.png) no-repeat left center;
  padding-left: 2rem;
  font-size: 1.4rem;
}


/* 3.3.3 链接 */
.mix aside{
  flex: 0 0 18.5rem;
}

.mix aside ul{
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 1.5rem;
}

/* 边框盒子 */
.mix aside a{
  display: inline-block;
  box-sizing: border-box;
  width: 18rem;
  height: 5rem;
  line-height: 4.8rem;
  border: .1rem solid #d4d4d4;
  background-color: #f7f7f7;
  padding-left: 6.5rem;
  margin-top: .5rem;
  font-size: 1.4rem;
}

.mix aside a:hover{
  color: #fff;
  background-color: #89211b;
  border: .1rem solid #89211b;
}

.icon1{
  background: url(../images/b1.png) no-repeat 2rem center;
}

.icon1:hover{
  background: url(../images/b01.png) no-repeat 2rem center;
}

.icon2{
  background: url(../images/b2.png) no-repeat 2rem center;
}

.icon2:hover{
  background: url(../images/b02.png) no-repeat 2rem center;
}

.icon3{
  background: url(../images/b3.png) no-repeat 2rem center;
}

.icon3:hover{
  background: url(../images/b03.png) no-repeat 2rem center;
}

.icon4{
  background: url(../images/b4.png) no-repeat 2rem center;
}

.icon4:hover{
  background: url(../images/b04.png) no-repeat 2rem center;
}

.icon5{
  background: url(../images/b5.png) no-repeat 2rem center;
}

.icon5:hover{
  background: url(../images/b05.png) no-repeat 2rem center;
}

.icon6{
  background: url(../images/b1.png) no-repeat 2rem center;
}

.icon6:hover{
  background: url(../images/b01.png) no-repeat 2rem center;
}

/* 3.4 专题网站 */

/* 4. 页面底部 */
